//
//  RestaurantCollectionViewCell.m
//  CleanerAir_Project
//
//  Created by 付亚杰 on 16/5/18.
//  Copyright © 2016年 Beijing Colin El Internet. All rights reserved.
//

#import "RestaurantCollectionViewCell.h"

@interface RestaurantCollectionViewCell()


@property (weak, nonatomic) IBOutlet UIImageView *muImageView;

@property (strong, nonatomic) UIImageView *imageView;

@end

@implementation RestaurantCollectionViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
//    self.muImageView
    
    // Initialization code
}

- (UIImageView *)imageView{
    if (_imageView == nil) {
        _imageView =  [[UIImageView alloc] initWithFrame:self.contentView.frame];
        [self.contentView addSubview:_imageView];
    }
    return _imageView;
}

- (void)setModel:(MedicalModel *)model{
    if (model !=  nil) {
        _model = model;
        
        [self.imageView sd_setImageWithURL:[NSURL URLWithString:model.pic] placeholderImage:[UIImage imageNamed:@"餐厅占位图.png"]];
    }
}

@end
